namespace Terra.Service.Identity.DTOs;

/// <summary>
/// 令牌信息DTO
/// </summary>
/// <remarks>
/// 包含JWT令牌的完整信息，用于客户端存储和使用
/// </remarks>
public class TokenDto
{
    /// <summary>
    /// JWT访问令牌
    /// </summary>
    /// <example>eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...</example>
    public string AccessToken { get; set; }

    /// <summary>
    /// 用于刷新访问令牌的刷新令牌
    /// </summary>
    /// <example>8eYS8w37ByH4TKqJ...</example>
    public string RefreshToken { get; set; }

    /// <summary>
    /// 访问令牌的过期时间（Unix时间戳，单位：秒）
    /// </summary>
    /// <example>1710580200</example>
    public long ExpiresIn { get; set; }

    /// <summary>
    /// 令牌类型，固定为"Bearer"
    /// </summary>
    /// <example>Bearer</example>
    public string TokenType { get; set; } = "Bearer";
}